[% USE date %]
[% title = c.loc('Popular') %]
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>[% title %]</title>
<link>[% c.req.base _ 'site/popular/' _ type %]</link>
<description>[% title %]</description>
<pubDate>[% date.format(date.now, '%Y-%m-%dT%H:%M:%S+00:00') %]</pubDate>
<lastBuildDate>[% date.format(date.now, '%Y-%m-%dT%H:%M:%S+00:00') %]</lastBuildDate>
<generator>Foorum RSS Generator</generator>

[% FOREACH obj IN objects %]
<item>
<title>[% obj.title %]</title>
<link>[% base _ obj.url %]</link>
<description><![CDATA[
[% obj.text %]
]]></description>
<guid isPermaLink="true">[% base _ obj.url %]</guid>
<pubDate>[% obj.last_update.replace('\s+', 'T') %]</pubDate>
</item>
[% END %]

</channel>
</rss>